//
//  SafariView.swift
//  CrseAsst
//
//  Created by 申铭 on 2024/2/23.
//

import SwiftUI
import SafariServices

struct SafariView: UIViewControllerRepresentable {
    
    let url: URL
    
    func makeUIViewController(context: Context) -> some UIViewController {
        let sf = SFSafariViewController(url: url)
        sf.dismissButtonStyle = .close
        return sf
    }
    
    func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {
        
    }
}

